package com.duan.laugh.event.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 事件处理规则
 * </p>
 *
 * @author liutf
 * @since 2019-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("event_handler_rule")
@ApiModel(value = "EventHandlerRule对象", description = "事件处理规则")
public class EventHandlerRule implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "事件模型id")
    private Long eventModelId;

    @ApiModelProperty(value = "处理方式 13自动14人工15无需处理")
    @NotNull(message = "处理方式不能为空")
    private Integer handling;

    @ApiModelProperty(value = "处理人")
    private String handler;

    @ApiModelProperty(value = "触发时间字段")
    private String tiggerTimeField;

    @ApiModelProperty(value = "触发url")
    private String url;
}
